package com.lion.ball.app.models.result;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 商品详情 响应结果
 * Explain:
 * 
 */
@Schema(description = "商品详情 请求响应结果")
public class TradeGoodsDetailsResult {
    @Schema(description = "ID", example = "1")
    private long id;
    @Schema(description = "商品编号", example = "1")
    private long code;
    @Schema(description = "卖家留言", example = "字符串")
    private String sellerMsg;

    // 无参构造方法
    public TradeGoodsDetailsResult() {
    }

    // 全参数构造方法
    public TradeGoodsDetailsResult(long id, long code, String sellerMsg) {
        this.id = id;
        this.code = code;
        this.sellerMsg = sellerMsg;
    }

    // 全参数create生成器
    public static TradeGoodsDetailsResult create(long id, long code, String sellerMsg) {
        return new TradeGoodsDetailsResult(id, code, sellerMsg);
    }

    // 全参数of生成器
    public static TradeGoodsDetailsResult of(long id, long code, String sellerMsg) {
        return new TradeGoodsDetailsResult(id, code, sellerMsg);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public TradeGoodsDetailsResult setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public TradeGoodsDetailsResult setCode(long code) {
        this.code = code;
        return this;
    }

    public String getSellerMsg() {
        return sellerMsg;
    }

    public TradeGoodsDetailsResult setSellerMsg(String sellerMsg) {
        this.sellerMsg = sellerMsg;
        return this;
    }

    // endregion Getter和Setter方法
}
